using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ST.Buz.Base.Entity
{
	/// <summary>
	/// 收款明细
	/// </summary>
	[Serializable]
	[Table("IMS_FinanceRecvDetail")]
	public partial class IMS_FinanceRecvDetail : ISys_RowID
	{
		/// <summary>
		/// 
		/// </summary>
		[Key]
		[Column("ID")]
		public int ID { get; set; }

		/// <summary>
		/// 收款单ID
		/// </summary>
		[Column("RecvID")]
		public int RecvID { get; set; }

		/// <summary>
		/// 应付款或应收款ID
		/// </summary>
		[Column("DueID")]
		public int DueID { get; set; }

		/// <summary>
		/// 应付款或应收款流水号（冗余）
		/// </summary>
		[Column("DueSNo")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string DueSNo { get; set; }

		/// <summary>
		/// 本次收款总额
		/// </summary>
		[Column("Recved")]
		public decimal Recved { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[Column("DetailAddDate")]
		public DateTime DetailAddDate { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("OrgID")]
		public int OrgID { get; set; }
	}
}

